package com.example.designpatten.chapter6_decoratorpattern;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Test {
    public static void main(String[] args) {
        Person xc = new PersonInstance("小菜");
        log.info("\n第一种装扮");
        Sneakers pqx = new Sneakers();
        BigTrouser kk = new BigTrouser();
        TShirts dtx = new TShirts();

        pqx.decorate(xc);
        kk.decorate(pqx);
        dtx.decorate(kk);
        dtx.show();
    }
}
